<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:insert="~{include :: header('用户登录日志列表')}" />
    <th:block th:insert="~{include :: bootstrap-table-css}" />
</head>
<body class="hold-transition">
<div class="container-fluid mb-2">
    <table id="bootstrap-table" class="table-striped"></table>
</div>
<th:block th:insert="~{include :: footer}" />
<th:block th:insert="~{include :: bootstrap-table-js}" />
<script th:inline="javascript">
    var userId = [[${userId}]];
    $(function() {
        var options = {
            url: "/user/login/list.json?userId="+userId,
            showSearch: false,
            showRefresh: false,
            showToggle: false,
            showColumns: false,
            modalName: "用户登录日志",
            columns: [
                {
                    field: 'loginTime',
                    title: '登录时间',
                    width: '15%'
                },
                {
                    field: 'userIp',
                    title: '登录ip',
                    width: '15%'
                },
                {
                    field: 'userOs',
                    title: '操作系统',
                    width: '15%'
                },
                {
                    field: 'userAgent',
                    title: '浏览器',
                    width: '55%'
                }]
        };
        $.table.init(options);
    });
</script>
</body>
</html>